<script lang="ts" setup>
function onClearRandomTestingCache() {
  const localStorageId = 'RandomTesting'
  localStorage.removeItem(`${localStorageId}:idArr`)
  localStorage.removeItem(`${localStorageId}:idTotal`)
  localStorage.removeItem(`${localStorageId}:currentIndex`)
  localStorage.removeItem(`${localStorageId}:PageSize`)
  localStorage.removeItem(`${localStorageId}:currentPage`)
}
</script>
<template>
  <BaseLayout>
    <div class="continer-wrapper">
      <div class="continer">
        <AButton type="primary" @click="onClearRandomTestingCache">清除刷题缓存</AButton>
      </div>
    </div>
  </BaseLayout>
</template>

<style lang="less" scoped>
.continer-wrapper {
  margin: 24px 16px;
  .continer {
    padding: 24px;
    background: #fff;
    min-height: 360px;
  }
}
</style>
